projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0068e2
)
(add_node): Move var last_node to file scope.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 19 Jun 1993 20:35:26 +0000
(20:35 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 19 Jun 1993 20:35:26 +0000
(20:35 +0000)
lib-src/etags.c
patch
|
blob
|
history
diff --git
a/lib-src/etags.c
b/lib-src/etags.c
index d0ba72be5e6fff90d974e25cba8ce6055e83f1d2..22b256788235e241d8d6a719e6fc27f922f11ccc 100644
(file)
--- a/
lib-src/etags.c
+++ b/
lib-src/etags.c
@@
-1103,13
+1103,16
@@
free_tree (node)
* add_node is the only function allowed to add nodes, so it can
* maintain state.
*/
+/* Must avoid static vars within functions since some systems
+ #define static as nothing. */
+static NODE *last_node = NULL;
+
void
add_node (node, cur_node_p)
NODE *node, **cur_node_p;
{
register int dif;
register NODE *cur_node = *cur_node_p;
- static NODE *last_node = NULL;/* careful */
if (cur_node == NULL)
{